
*****************************************************************   TABLE 3 - Board vs. No Board   ******************************************************
*                         The code below generates the overall means and the diff. in means t-tests (Board vs. No Board) in Table 3:                    *
*********************************************************************************************************************************************************
* Overall means:
eststo clear
eststo: mean num_SH Herf smallestBlock_pct med_perc_ow largestBlock_pct small_block_value med_mon_ow large_block_value
esttab using ".\Output\Table3_means", cells("b(fmt(3))" )  replace
eststo clear

* The following generates and stores means by groups (Board vs. no-Board), their difference and the p-values:
estpost ttest num_SH Herf smallestBlock_pct med_perc_ow largestBlock_pct small_block_value med_mon_ow large_block_value, by (DR) unequal 
esttab using ".\Output\Tab3ttest_DR", cells("mu_1(fmt(3)) mu_2 b(star) p" ) delimiter(" & ") varwidth(30) nonumber nomtitle l starlevels(+ 0.15 * 0.10 ** 0.05 *** 0.01)  replace 

* The following generates and stores the standard errors by groups (Board vs. no-Board): 
eststo clear
eststo: mean num_SH Herf smallestBlock_pct med_perc_ow largestBlock_pct small_block_value med_mon_ow large_block_value, over(DR)
esttab using ".\Output\Tab3se_DR", cells("se(par fmt(3))" )  replace
eststo clear


*****************************************************************  TABLE 3 - SD vs. LD  *****************************************************************
*                         The code below generates the diff. in means t-tests (Small den. vs. Large den.) in Table 3:                                   *
*********************************************************************************************************************************************************
*The following generates and stores means by groups (Small den. vs. Large den.), their difference and the p-values:
estpost ttest num_SH Herf smallestBlock_pct med_perc_ow largestBlock_pct small_block_value med_mon_ow large_block_value, by (SD) unequal 
esttab using ".\Output\Tab3ttest_SD", cells("mu_1(fmt(3)) mu_2 b(star) p" ) delimiter(" & ") varwidth(30) nonumber nomtitle l starlevels(+ 0.15 * 0.10 ** 0.05 *** 0.01)  replace 

*The following generates and stores the standard errors by groups (Small den. vs. Large den.): 
eststo clear
eststo: mean num_SH Herf smallestBlock_pct med_perc_ow largestBlock_pct small_block_value med_mon_ow large_block_value, over(SD)
esttab using ".\Output\Tab3se_SD", cells("se(par fmt(3))" )  replace
eststo clear
